#ifndef _PROTOCOL_VALUE_HPP_20120421
#define _PROTOCOL_VALUE_HPP_20120421

#include <stdint.h>

namespace protocol
{
#if 0
	template <uint16_t _H, uint16_t _L>
		struct MakeUint32_t
		{
			enum { value = ((((uint32_t)_H) << 16) | ((uint32_t)_L)) };
		};
#endif

#undef USE_SWITCH

#define PROTOCOL_CMD(class, cmd0, cmd1, cmd1_value) const static uint16_t cmd1 = cmd1_value;

#include "protocol_value.def"

#undef PROTOCOL_CMD

    const char * cmd_2_str(uint16_t type);

};

#endif

